package com.example.huadi1.mapper;

import com.example.huadi1.dto.BuyBook;
import com.example.huadi1.dto.Demand;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

public interface BuyBookMapper {
    BuyBook selectBuyBook(@Param("textbookId") int textbookId, @Param("supplierId") int supplierId);
    List<BuyBook>  selectBuyBookByTextbook(int textbookId);
    void insertBuyBook(BuyBook buyBook);

    void updateBuyBook(BuyBook buyBook);

    void deleteBuyBook(@Param("textbookId") int textbookId, @Param("supplierId") int supplierId);

    List<BuyBook>  selectAllBuyBook();
    List<BuyBook>  selectAllBuyBookUnPass();

    void confirmAllBuyBookUnPass();

}
